package cn.kzgg.ymcc.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 注册接受的参数对象
 * formParams表单的
 */
@Data
public class RegisterDto {
    @Pattern(regexp="^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$")
    private String mobile;
    private String imageCodeValue;
    @Size(min=3,max = 6,message = "密码必须在3-6位")
    private String password;
    private String imageCode;
    @Size(min = 6,max = 6,message = "验证码必须是6位")
    private String smsCode;
    private Integer regChannel;
}
